import React from 'react'

//省市区三级联动
export async function apiGetDBAreaList(params) {
    return await React.$post('/admin/dbArea/list', params);
}

//服务站列表
export async function apiGetStoreInfoPage(params) {
    return await React.$post('/admin/storeInfo/page', params);
}

//服务站详细信息
export async function apiGetStoreInfoDetail(params) {
    return await React.$post('/admin/storeInfo/detail', params);
}

//服务站详细信息-折线图
export async function apiGetStoreInfoLine(params) {
    return await React.$post('/admin/orderInfo/getOrderPriceTotal', params);
}

//通过服务站id查询订单明细列表-分页
export async function apiGetStoreInfoOrder(params) {
    return await React.$post('/admin/orderInfo/getOrderListByStoreId', params);
}

//服务站-是否开启满赠
export async function apiGetStoreInfoDiscount(params) {
    return await React.$post('/admin/storeInfo/discount', params);
}

//服务站-商品
export async function apiGetStoreInfoGoodsPage(params) {
    return await React.$post('/admin/storeProductStore/page', params);
}

//服务站-商品-修改
export async function apiGetStoreProductEdit(params) {
    return await React.$post('/admin/storeProductStore/edit', params);
}

//服务站-商品-删除
export async function apiGetStoreProductDel(params) {
    return await React.$post('/admin/storeProductStore/del', params);
}

//服务站-新增-获取负责人
export async function apiGetScoreList(params) {
    return await React.$post('/admin/memberInfo/list', params);
}

//服务站-新增-获取服务项目
export async function apiGetStoreServiceLabelList(params) {
    return await React.$post('/admin/storeServiceLabel/list', params);
}

//服务站-新增-获取门店品牌
export async function apiGetStoreBrandLabelList(params) {
    return await React.$post('/admin/storeBrandLabel/list', params);
}

//服务站-新增
export async function apiGetStoreInfoAdd(params) {
    return await React.$post('/admin/storeInfo/add', params);
}

//服务站-修改
export async function apiGetStoreInfoEdit(params) {
    return await React.$post('/admin/storeInfo/edit', params);
}

//服务站-删除
export async function apiGetStoreInfoDel(params) {
    return await React.$post('/admin/storeInfo/del', params);
}

//服务站-设置满赠
export async function apiGetStoreInfoSetDiscount(params) {
    return await React.$post('/admin/storeInfo/setDiscount', params);
}

//服务站-商品-添加商品列表
export async function apiGetStoreProductStoreAddProductlist(params) {
    return await React.$post('/admin/storeProduct/storeAddProductlist', params);
}

//服务站-商品-添加商品-确认
export async function apiGetStoreProductStoreSaveBatch(params) {
    return await React.$post('/admin/storeProductStore/saveBatch', params);
}

//服务站-商品-添加商品-开关商品
export async function apiGetStoreProductStoreOpenOrClose(params) {
    return await React.$post('/admin/storeProductStore/openOrClose', params);
}

//服务站-设置满赠回显
export async function apiGetStoreInfoView(params) {
    return await React.$post('/admin/storeInfo/view', params);
}